import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import MyTanwu from '../view/MyTanwu'
// import MyHome from '../components/MyHome'

let routes = [{
        path: "/",
        component: MyTanwu,

    },
    {
        path: "/MyTanwu",
        component: MyTanwu,
        children: [{
                path: "MyHome",
                component: () =>
                    import ("../components/MyHome")
            }, {
                path: "MyGuanyv",
                component: () =>
                    import ("../components/MyGuanyv")
            }, {
                path: "MyGuanyv",
                component: () =>
                    import ("../components/MyGuanyv")
            }, {
                path: "MyZulin",
                component: () =>
                    import ("../components/MyZulin")
            },
            {
                path: "MyChanpin",
                component: () =>
                    import ("../components/MyChanpin")
            },
            {
                path: "MyShangwu",
                component: () =>
                    import ("../components/MyShangwu")
            },
            {
                path: "MyJiaru",
                component: () =>
                    import ("../components/MyJiaru")
            }
        ]

    }
]

let router = new VueRouter({
    routes
})

export default router